﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Landscape.WebApp
{
    public partial class Redirect : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["ACTIVE_USER"] != null)
            {
                var cu = (Landscape.WebApp.UIBizObjects.ActiveUser)Session["ACTIVE_USER"];
                if (!cu.IsADUser)
                {
                    Response.Redirect("~/External/DashBoard.aspx");
                }
                else
                {
                    Response.Redirect("~/Internal/DashBoard.aspx");
                }
            }
        }
    }
}